{% for lecture in course.lectures %}
<div class="lecture">
  <h4><a href="/redirect/{{ lecture.source|safe}}/">Lecture {{lecture.lecture_num|title}} {%if lecture.title%}:{{lecture.title|title|safe}}{% endif %}</a></h4>
	<div class="category">
	{% for topic in lecture.topics %}
    	<a href="/{{ topic.id|safe }}/">{{ topic.name|title|safe }}
		</a>{%if not forloop.last %}, {% endif %}{% endfor %}.
	</div>
</div>
{% endfor %}
